motion in one dimension problems and solutions